﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="VoteList.aspx.cs" Inherits="Manage_Cms_VoteList" %>

<html>
<head>
    <!--#include file="../js/html_head.inc"-->
    <link rel="stylesheet" type="text/css" href="../Themes/<%=ManageHelper.GetTheme()%>/style.css" />
</head>
<body>
    <%=ManageHelper.PageSucMsg()!=""?"<div class='msg_succeed'>"+ManageHelper.PageSucMsg()+"</div>":""%>
    <%=ManageHelper.PageErrMsg()!=""?"<div class='msg_failed'>"+ManageHelper.PageErrMsg()+"</div>":""%>
    <table width="95%" align="center">
        <tr>
            <td align="right">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td>
                            <input type="submit" name="AddGroup" value="添加投票" onclick="javascript:location.href='voteitem.aspx?siteid=<%=SiteId %>'"
                                id="AddGroup" class="button" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <div class="column">
        <div class="columntitle">
            投票管理</div>
        <table cellspacing="0" cellpadding="0" rules="all" align="center" border="0" style="border-width: 0px; width: 100%; border-collapse: collapse;">
            <tr class="summary-title" style="height: 25px" align="left">
                <td style="width:50px;" align="center">编号</td>
                <td align="left">
                    投票名称</td>
                <td >
                    投票标题（点击查看）</td>
                <td style="width: 60px" align="center">
                    总票数
                </td>
                <td style="width:160px" align="center">操作</td>
            </tr>
            <%
                int i=0;
                foreach (KeRui.Model.CmsVote model in list)
                {
                    i++;
            %>
            <tr class="tdbg" onmouseover="this.className='tdbg-dark';" onmouseout="this.className='tdbg';" style="height: 25px;" align="left">
                <td align="center">
                    <%=i%> 
                </td>
                <td align="left">
                    <%=model.Title%>
                </td>
                <td style="width: 400px">
                    <a href="javascript:ymPrompt.win('VoteItemLook.aspx?VoteID=<%=model.VoteID %>',450,230,'查看投票数',null,null,null,true);">
                        <%=model.Content%>
                    </a>
                </td>
                <td align="center">
                    <%=model.VoteNum%>
                </td>
                <td align="center">
                    <a href="CmsVoteIp.aspx?VoteID=<%=model.VoteID %>">查看投票</a> | 
                    <a href="#" onclick="ymPrompt.win('VoteTemplate.aspx',450,230,'复制内容',null,null,null,true);"" > 设置</a>| 
                    <a href="VoteItemUpdate.aspx?VoteID=<%=model.VoteID %>">编辑</a> | 
                    <a href="VoteList.aspx?DelVoteID=<%=model.VoteID %>" onclick="return confirm('此操作将删除“<%=model.Title %>”的相关数据！您确认删除吗？')">删除</a></td>
            </tr>
            <%
                }
            %>
        </table>
    </div>
    <%=PageShow %>
    <input type="hidden" id="txtSiteID" name="siteid" value="<%= KeRui.Common.PageRequest.GetInt("siteid",-1) %>" />
</body>
</html>
